package cn.gdrj.est.annotations;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * TODO(这里用一句话描述这个类的作用)
 *
 * @author jun
 * @date 2021/11/15
 */
@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE })
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy = {TemporalIntervalTimeSegmentValidator.class })
public @interface TemporalIntervalTimeSegment {

    int[] values() default {};

    String message() default "预约时间段不正确";

    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default { };
}
